<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
    <div id="demo">
        {{msg}}
        <p v-text="msg"></p>
        <div v-html="html"></div>
        <h1 v-if="age<=10">小学生</h1>
        <h1 v-else-if="age<20">初学生</h1>
        <h1 v-else-if="age<25">高中生</h1>
        <h1 v-else>打工人打工魂</h1>

        
    </div>
    
    <script>
        new Vue({
            el:'#demo',
            data:{
                msg:'Hello didi!',
                html:'<h1>雷猴</h1>',
                age:12
            }
        })
        
    </script>
 
</body>
</html>